package final2107.day06;

public class T {
    public synchronized void demo(){
        System.out.println(Thread.currentThread().getName()+"开始");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName()+"结束");
    }
}
